﻿@model AvailableTab
@{
    // start counter
    int counter = 1;

    // render editor
    <div class="tab-inner" data-tab="@Model.Name">
        @foreach (var propt in Model.PropertyTypes)
        { 
                
            <h4>@(counter++). @Html.Label(propt.FriendlyName)</h4>
            <div class="property-editor">
                @{
            Html.RenderContentModelPropertyEditor(propt, (IContentModelBase)ViewBag.ParentModel);
                }
            </div>
        }
    </div>
    
    // reset counter
    counter = 1;
}
